Skip to content

Conversation

@gpeacock
Copy link
Collaborator

@gpeacock gpeacock commented Nov 25, 2025

This adds a Context struct that contains settings, https resolvers and signers.
This is a work in progress but hopefully the right direction

…rts.

adds unit test for from_stream and c2p2.created.
add_ingredient_from_stream
always set position to zero inside read  methods
added Builder::from_context()
builder.with_json()
Add ContentCredential.open_stream()
Reader::new and reader.with_stream added.
@gpeacock gpeacock marked this pull request as draft November 25, 2025 03:18
@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 82.80488% with 141 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.17%. Comparing base (2ec0f4d) to head (007e8f5).

Files with missing lines Patch % Lines
sdk/src/context.rs 68.60% 27 Missing ⚠️
sdk/src/content_credential.rs 87.07% 19 Missing ⚠️
sdk/src/reader.rs 78.48% 17 Missing ⚠️
sdk/src/assertions/actions.rs 62.79% 16 Missing ⚠️
sdk/src/ingredient.rs 82.43% 13 Missing ⚠️
sdk/src/builder.rs 84.28% 11 Missing ⚠️
sdk/src/crypto/cose/ocsp.rs 33.33% 10 Missing ⚠️
sdk/src/crypto/ocsp/fetch.rs 0.00% 7 Missing ⚠️
sdk/src/settings/builder.rs 66.66% 7 Missing ⚠️
sdk/src/settings/signer.rs 88.00% 6 Missing ⚠️
... and 3 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1631      +/-   ##
==========================================
- Coverage   75.30%   75.17%   -0.13%     
==========================================
  Files         166      169       +3     
  Lines       37257    37272      +15     
==========================================
- Hits        28055    28018      -37     
- Misses       9202     9254      +52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 25, 2025

CodSpeed Performance Report

Merging #1631 will not alter performance

Comparing gpeacock/content_credential (007e8f5) with main (2ec0f4d)

Summary

✅ 16 untouched
⏩ 2 skipped1

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants